<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
		<table>
			<tr>
				<td>
					<table>
						<xsl:apply-templates select="*"/>
						
					</table>
				</td>
			</tr>
		</table>
	</xsl:template>
	<xsl:template match="categories">
		<tr>
			<xsl:apply-templates select="*"/>
		</tr>
	</xsl:template>
	<xsl:template match="category">
		<td style="vertical-align:top" valign="top">
			<div style="vertical-align:top;width:310px;min-width:300px" id="{@id}" type="category">
				<div class="cellUnderline"><span id="{@id}__TITLE" class="sideBarHeaderFont"><xsl:value-of select="@name"/></span></div>
				<br />
				<xsl:apply-templates select="subcategory"/>
			</div>
		</td>
	</xsl:template>
	<xsl:template match="subcategory">
		<div id="{@id}" type="subcategory" style="padding-left:10px;width:95%"><span id="{@id}__SUBTITLE" class="sideBarSubHeaderFont"><xsl:value-of select="@name"/></span><br />
			<div style="padding-left:10px;width:95%">
				<ul>
					<xsl:apply-templates select="article"/>
				</ul>
			</div>
		</div>
	</xsl:template>
	<xsl:template match="article">
		<li>
			<xsl:choose>
				<xsl:when test="text() != 'Coming soon!'">
					
					<xsl:choose>
						<xsl:when test="//categories/@lp_on != 'false'">
							<a class="sideBarContentLinks" href="http://go.zoominfo.com/LP={@lpid}">
								<xsl:value-of select="text()"/>
							</a>
						</xsl:when>
						<xsl:otherwise>
							<a class="sideBarContentLinks" href="http://localhost/{@page}">
								<xsl:value-of select="text()"/>
							</a>
						</xsl:otherwise>
					</xsl:choose>					
				</xsl:when>
				<xsl:otherwise>
					<span class="sideBarContentLinks"><xsl:value-of select="text()"/></span>
				</xsl:otherwise>
			</xsl:choose>
		</li>
	</xsl:template>
</xsl:stylesheet>
